
using abilities.templates;

// 能让单位跳过墙的效果
namespace abilities.effects
{
    public class EffectWalkThroughWalls : Effect
    {
        public EffectWalkThroughWalls(EffectTemplate t,int level) : base(t,level)
        {
        }
        
        protected override void Apply(UnitObject view, bool replay)
        {
            UnitObject owner = view as UnitObject;
            if (!owner)
            {
                return;
            }

            //owner.setWalkThroughWalls(true);
        }

        protected override void Cancel(UnitObject view, bool replay)
        {
            UnitObject owner = view as UnitObject;
            if (!owner)
            {
                return;
            }

            //owner.setWalkThroughWalls(false);
        }
    }
}